<h1 class="title"><a href="<?php echo $this->url(array('action'=>'add'));?>">Adicionar Loja</a></h1>
<?php if($this->rowcount > 0) { ?>
	<h2>Lojas Cadastradas</h2>
	<table cellspacing="2">
		<?php foreach($this->store_list as $store_list) : ?>
			<tr class="<?php echo $this->cycle(array("greyBg",""))->next(); ?>">
				<td><?php echo $this->escape($store_list->name); ?></td>
				<td><?php echo $this->escape($store_list->uf); ?></td>
				<td>
					<a href="<?php echo $this->url(array('action'=>'edit', 'store_id'=>$store_list->store_id));?>">Editar</a>
					<a href="<?php echo $this->url(array('action'=>'delete', 'store_id'=>$store_list->store_id));?>">Excluir</a>
				</td>
			</tr>
		<?php endforeach; ?>
	</table>
<?php } else { ?>
	Nenhum registro encontrado!
<?php } ?>